package com.alittle.module.function;


import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;

import com.alittle.R;
import com.alittle.core.ALBaseMvpActivity;
import com.alittle.mvp.func.ISplashPresenter;
import com.alittle.mvp.func.ISplashView;

/**
 * Created by wom on 2015/8/5.
 */
public class SplashActivity extends ALBaseMvpActivity<ISplashPresenter> implements ISplashView {


    @Override
    protected ISplashPresenter createPresenter() {
        return new SplashPresenter();
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.parents_splash);

        new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {

            @Override
            public void run() {

                presenter.checkLoginState(SplashActivity.this);

                finish();
            }
        }, 2000);
    }


}
